package cn.tedu.jsd2205the.back.end.project.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 购物车
 */
@Data
//链式调用setter
@Accessors(chain = true)
public class ShopCart implements Serializable {
    private String id;
    private Integer productId; // 商品id
    private Double money; // 商品价格
    private Integer quantity; // 商品数量
    private String userId; // 用户id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime created; // 添加时间
}